import random

code = ''
for i in range(4):
    ran1 = str(random.randint(0, 9))
    ran2 = chr(random.randint(65, 90))
    ran3 = chr(random.randint(97, 122))

    code += random.choices([ran1, ran2, ran3])

print(code)
